package javao.cn.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javao.cn.common.utils.PageUtils;
import javao.cn.common.utils.Query;

import javao.cn.modules.sys.dao.SysAnnouncementsDao;
import javao.cn.modules.sys.entity.SysAnnouncementsEntity;
import javao.cn.modules.sys.service.SysAnnouncementsService;


@Service("sysAnnouncementsService")
public class SysAnnouncementsServiceImpl extends ServiceImpl<SysAnnouncementsDao, SysAnnouncementsEntity> implements SysAnnouncementsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysAnnouncementsEntity> page = this.page(
                new Query<SysAnnouncementsEntity>().getPage(params),
                new QueryWrapper<SysAnnouncementsEntity>()
        );

        return new PageUtils(page);
    }

}